Skip to content

Botwiz debug fixes 4#262

Merged
JegernOUTT merged 6 commits intomainfrom
botwiz-debug-fixes-4
Mar 27, 2026
Merged

Botwiz debug fixes 4#262
JegernOUTT merged 6 commits intomainfrom
botwiz-debug-fixes-4

Conversation

@JegernOUTT
Copy link
Copy Markdown
Member

feat(botwiz): add test run functionality for bots

Implement complete bot test workflow:

  • Install bot dependencies and run install scripts
  • Support both script-based and manifest-based bots
  • Auto-create test persona in marketplace dev group
  • Frontend test run UI with progress tracking and persistence
  • "Talk to bot" and "Analyze by Bob" session navigation
  • Improved bot status detection and resource cleanup

@JegernOUTT JegernOUTT force-pushed the botwiz-debug-fixes-4 branch 2 times, most recently from ddc4bfc to b38fa32 Compare March 25, 2026 10:06
Implement complete bot test workflow:
- Install bot dependencies and run install scripts
- Support both script-based and manifest-based bots
- Auto-create test persona in marketplace dev group
- Frontend test run UI with progress tracking and persistence
- "Talk to bot" and "Analyze by Bob" session navigation
- Improved bot status detection and resource cleanup
Add comprehensive bot publishing workflow to marketplace with GitHub auth
and Docker image building. Introduce avatar generation from style refs
using xAI Grok Imagine.

Key changes:
- `publish_marketplace` tool with build/submit_to_review modes
- `generate_avatar` tool with style bank seeding and idea-based generation
- Backend GraphQL mutations: `botwiz_marketplace_action`, avatar RPCs
- Frontend marketplace action menu and OAuth popup handling
- Improved expert reuse by fexp_id and provenance tracking
- Style bank manifest and default assets in flexus-client-kit
Introduce _FULLSIZE_TARGET (1024x1536) and resize logic that:
- Scales images proportionally to fit within target dimensions
- Centers the scaled image on a transparent canvas
- Applies to both WebP conversion and direct file saving

Ensures consistent output dimensions while preserving aspect ratio.
Introduce _encode_webp_within_limit() to progressively reduce quality
from 100 down to 40 until image fits within 250KB limit, preventing
upload failures due to oversized files.

Replace direct WebP saves with this function in fullsize and 256px
avatar generation.
Make xai_sdk a hard dependency by removing the try/except import and
related runtime check. Users must now install xai-sdk explicitly.
- Add continuous heartbeat loop (every 10s) in service_devenv.py
- Replace sys.pong with sys.heartbeat messages
- Update frontend WebSocket to use heartbeat timeout (30s) instead of ping/pong
- Remove ping/pong handling and auto-restart logic from botwiz.vue
- Add heartbeat task lifecycle management and proper cleanup
- Update TypeScript types for new heartbeat protocol
@JegernOUTT JegernOUTT force-pushed the botwiz-debug-fixes-4 branch from b388274 to 7c2bd3b Compare March 27, 2026 09:51
@JegernOUTT JegernOUTT merged commit ea719aa into main Mar 27, 2026
@JegernOUTT JegernOUTT deleted the botwiz-debug-fixes-4 branch March 27, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants